package com.campus.campusdelivery.repository;

import com.campus.campusdelivery.entity.Category;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryRepository extends JpaRepository<Category, Long> {
    
    List<Category> findByEnabledOrderBySortOrderAsc(Boolean enabled);
    
    List<Category> findByEnabled(Boolean enabled);
}
